package chapter20.homework3;

public class Development implements Department{
    private  Mediator mediator;//他们的经理
    public Development(Mediator mediator) {
        super();
        this.mediator = mediator;
        mediator.register("Development", this);//想经理注册自己
    }

    //本职工作
    @Override
    public void selfaction() {
        // TODO 自动生成的方法存根
        System.out.print("专心科研，开发项目");
    }
    //需求
    @Override
    public void outaction() {
        // TODO 自动生成的方法存根
        System.out.println("汇报工作没钱了，快给钱");
    }

}
